package com.example.demo.design.state_pattern.simple.account;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 20:03 2020/11/24
 * @Modified By:
 */
public class TestClient {

    public static void main(String args[]) {
        Account acc = new Account("段誉", 0.0);
        acc.deposit(1000);
        acc.withdraw(2000);
        acc.deposit(3000);
        acc.withdraw(4000);
        acc.withdraw(1000);
        acc.computeInterest();
    }
}
